<template>
  <!-- 首页的标题 -->
  <view class="title">
    <slot name="title">默认标题</slot>

    <!-- 右侧图标 -->
    <div class="right">
      <slot name="right">默认</slot>
    </div>
  </view>
</template>

<script setup>
</script>

<style scoped lang="scss">
.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 20rpx auto;
  // border: 1px solid red;

  .right {
    display: flex;
    align-items: center;
  }
}
</style>